<div class="layui-tab-item layui-form">
	{php}
		$loginTypeArr = explode(',',$object['loginType']);
		$mobileLoginTypeArr = explode(',',$object['mobileLoginType']);
		$registerTypeArr = explode(',',$object['registerType']);
		$mobileRegisterTypeArr = explode(',',$object['mobileRegisterType']);
	{/php}
	<fieldset class="layui-elem-field layui-field-title">
		<legend>登录设置</legend>
		 <table class='wst-form wst-box-top'>
		  <tr>
			 <th width='150'>电脑端登录：</th>
			 <td>
				 <div class='login-type'>
					 <input type='checkbox' class='ipt' name='loginType' value='1' {if empty($object['loginType']) || in_array(1,$loginTypeArr)}checked{/if} />账号登录
				 </div>
				 <div class='login-type'>
					 <input type='checkbox' class='ipt' name='loginType' value='2' {if in_array(2,$loginTypeArr)}checked{/if} />手机登录
				 </div>
				 <div class='login-type' style='display: none'>
					 <input type='checkbox' class='ipt' name='loginType' value='3' {if in_array(3,$loginTypeArr)}checked{/if} />扫码登录
				 </div>
			 </td>
		  </tr>
		 <tr>
			 <th width='150'>移动端登录：</th>
			 <td>
				 <div class='login-type'>
					 <input type='checkbox' class='ipt' name='mobileLoginType' value='1' {if empty($object['mobileLoginType']) || in_array(1,$mobileLoginTypeArr)}checked{/if} />账号登录
				 </div>
				 <div class='login-type'>
					 <input type='checkbox' class='ipt' name='mobileLoginType' value='2' {if in_array(2,$mobileLoginTypeArr)}checked{/if} />手机登录
				 </div>

			 </td>
		 </tr>
		 </table>
	</fieldset>
	<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
		<legend>注册设置</legend>
		<table class='wst-form wst-box-top'>
			<tr>
				<th width='150'>电脑端注册：</th>
				<td>
					<div class='login-type'>
						<input type='checkbox' class='ipt' name='registerType' value='1' {if empty($object['registerType']) || in_array(1,$registerTypeArr)}checked{/if} />账号注册
					</div>
					<div class='login-type'>
						<input type='checkbox' class='ipt' name='registerType' value='2' {if in_array(2,$registerTypeArr)}checked{/if} />手机注册
					</div>
				</td>
			</tr>
			<tr>
				<th width='150'>移动端注册：</th>
				<td>
					<div class='login-type'>
						<input type='checkbox' class='ipt' name='mobileRegisterType' value='1' {if empty($object['mobileRegisterType']) || in_array(1,$mobileRegisterTypeArr)}checked{/if} />账号注册
					</div>
					<div class='login-type'>
						<input type='checkbox' class='ipt' name='mobileRegisterType' value='2' {if in_array(2,$mobileRegisterTypeArr)}checked{/if} />手机注册
					</div>
				</td>
			</tr>
		</table>
		<table class='wst-form wst-box-top'>
		 {if (WSTDatas('ADS_TYPE',2)!='')}
			 <tr>
				 <th width='150'>微信端注册：
				 <td>
					 <div class='login-type'>
						 <input type='checkbox' class='ipt' name='wechatAutoRegister' value='1' {if  $object['wechatAutoRegister']==1}checked{/if} />开启自动注册
					 </div>

				 </td>
			 </tr>
		 {/if}
		 {if (WSTDatas('ADS_TYPE',5)!='')}
			 <tr>
				 <th width='150'>小程序注册：
				 <td>
					 <div class='login-type'>
						 <input type='checkbox' class='ipt' name='weappAutoRegister' value='1' {if  $object['weappAutoRegister']==1}checked{/if} />开启自动注册
					 </div>

				 </td>
			 </tr>
		 {/if}
		 {if (WSTDatas('ADS_TYPE',2)!='') || (WSTDatas('ADS_TYPE',5)!='')}
			 <tr>
				 <th width='150'></th>
				 <td >
					 <div >
						 开启自动注册，用户初次进入系统，系统会自动帮用户创建一个账号。如需多端统一一个账号则请勿勾选。
					 </div>
				 </td>
			 </tr>
		  {/if}
		  <tr>
			{if ($grant)}
			 <td colspan='2' align='center'>
				<button type="button" class="btn btn-primary btn-mright" onclick='javascript:edit()'><i class="fa fa-check"></i>保存</button>
				<button type="reset" class="btn" onclick='javascript:resetForm()'><i class="fa fa-refresh"></i>重置</button>
			 </td>
			 {/if}
		  </tr>
	 </table>
	</fieldset>
</div>